<div>
<h2>Galleries on <?php e($sitename);?></h2>
<ul class="gallery">
	<?php foreach ($galleries as $gallery): ?>
		<li class="gallery-item-<?php e($gallery['Gallery']['id']);?>" style="display:none;" /><?php e($html->link('<img src="/files/Image/' . $primary_image[$gallery['Gallery']['id']] . '" class="corner iradius10 ishade66 ishadow2"/><br />' . $gallery['Gallery']['name'], '/galleries/view/' . $gallery['Gallery']['url'], null, false, false));?></li>
		<?php e($javascript->codeBlock('$("li.gallery-item-' . $gallery['Gallery']['id'] . '").fadeIn(1000);'));?>
<?php endforeach; ?>
</ul>
</div>
<br style="clear:both;" />
<div id="paginate">
	<span class="previous">
		<?php e($paginator->prev('<< Previous', null, null, array('class' => 'disabled'))); ?>
	</span>
	<span class="next">
		<?php e($paginator->next('Next >>', null, null, array('class' => 'disabled'))); ?>
	</span>
	<br style="clear" />
</div>